<cfparam name="cart" default="false">
<cfset count = 0>
<cfset page_ = "false">
<cfset break_page = 'page-break-before: always;'>
<cfset th_width = "width='10%'">
<cfset td_width = "width='10%'">
<cfset th_style = "text-align: left;
    background-color: ##ffffff;
    background-repeat: no-repeat;
    background-position: right center;
    color: black;
    font-weight: bold;
    font-size:11px;
	padding: 2px;
	border: 1px solid ##000000;
    background-repeat: no-repeat;">
<cfset td_style = "text-align: left;font-size:8px;background-color: ##ffffff;vertical-align:top;border: 1px solid ##000000;font-size:11px;padding:2px;"> 
<cfset table_sytle = 'border-collapse: collapse;'>
<cfif url.id neq "search">
<cfinvoke component="components.data" method="get_report_data" returnvariable="list_reports" id="#url.id#">


<cfdocument format="pdf" orientation="portrait" filename="report.pdf" overwrite="yes" margintop = ".7" marginbottom = ".8" marginleft = ".25" marginright = ".25" unit = "in" fontembed="no" >
<cfdocumentitem type="header" >
<cfset page_ = "false">
<h1><div ><center><strong>Public Safety Interoperable Point of Contact Report</strong></center></div></h1>
</cfdocumentitem>
<cfdocumentitem type="footer">
<div style="color: #000000 font-size:12px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; display: inline;"></div>
<cfset page_ = "false">
</cfdocumentitem>



<table id="" border="0" cellspacing="0" cellpadding="0" width="100%" <cfoutput>style="#table_sytle#"</cfoutput> >
<cfloop list="#list_reports.poc_id#" index="i">
<cfinvoke component="components.data" method="get_poc_detail" returnvariable="list_poc" id="#i#">
<cfloop query="list_poc">

<cfif page_ eq "false">


<tbody >
<tr>
<td <cfoutput>#th_width#</cfoutput> <cfoutput>style="#th_style#"</cfoutput>>Location</td>
<td <cfoutput>#th_width#</cfoutput> <cfoutput>style="#th_style#"</cfoutput>>Jurisdiction</td>
<td <cfoutput>#th_width#</cfoutput> <cfoutput>style="#th_style#"</cfoutput>>Agency Type</td>
<td <cfoutput>#th_width#</cfoutput> <cfoutput>style="#th_style#"</cfoutput>>Agency Name</td>
<td <cfoutput>#th_width#</cfoutput> <cfoutput>style="#th_style#"</cfoutput>>Agency Physical Address</td>
<td <cfoutput>#th_width#</cfoutput> <cfoutput>style="#th_style#"</cfoutput>>Contact Last Name</td>
<td <cfoutput>#th_width#</cfoutput> <cfoutput>style="#th_style#"</cfoutput>>Contact First Name</td>
<td <cfoutput>#th_width#</cfoutput> <cfoutput>style="#th_style#"</cfoutput>>Contact Title</td>
<td <cfoutput>#th_width#</cfoutput> <cfoutput>style="#th_style#"</cfoutput>>Contact Email</td>
<td <cfoutput>#th_width#</cfoutput> <cfoutput>style="#th_style#"</cfoutput>>Contact Phone </td>
</tr>
</tbody>

</cfif>
<cfset page_ = "true">
<tbody>
<tr>
<td valign="top"<cfoutput>#td_width#</cfoutput><cfoutput>style="#td_style#"</cfoutput>><cfoutput>#state#</cfoutput></td>
<td valign="top"<cfoutput>#td_width#</cfoutput><cfoutput>style="#td_style#"</cfoutput>><cfoutput>#city#</cfoutput></td>
<td valign="top"<cfoutput>#td_width#</cfoutput><cfoutput>style="#td_style#"</cfoutput>><cfoutput>#gov_type#</cfoutput></td>
<td valign="top"<cfoutput>#td_width#</cfoutput><cfoutput>style="#td_style#"</cfoutput>><cfoutput>#company#</cfoutput></td>
<td valign="top"<cfoutput>#td_width#</cfoutput><cfoutput>style="#td_style#"</cfoutput>><cfoutput>#address#</cfoutput></td>
<td valign="top"<cfoutput>#td_width#</cfoutput><cfoutput>style="#td_style#"</cfoutput>><cfoutput>#last_name#</cfoutput></td>
<td valign="top"<cfoutput>#td_width#</cfoutput><cfoutput>style="#td_style#"</cfoutput>><cfoutput>#first_name#</cfoutput></td>
<td valign="top"<cfoutput>#td_width#</cfoutput><cfoutput>style="#td_style#"</cfoutput>><cfoutput>#title#</cfoutput></td>
<td valign="top"<cfoutput>#td_width#</cfoutput><cfoutput>style="#td_style#"</cfoutput>><cfoutput>#email#</cfoutput></td>
<td valign="top"<cfoutput>#td_width#</cfoutput><cfoutput>style="#td_style#"</cfoutput>><cfoutput>#phone#</cfoutput></td>
</tr>
</tbody>
</cfloop>
</cfloop>

</table>
<cfset page_ = "true">
</cfdocument>

<cflocation url="report.pdf" addtoken="no">

<cfelse>



<cfdocument format="pdf" orientation="portrait" filename="report.pdf" overwrite="yes" margintop = ".7" marginbottom = ".8" marginleft = ".25" marginright = ".25" unit = "in" fontembed="no" >
<cfdocumentitem type="header" >


<h1><div ><center><strong>Public Safety Interoperable Point of Contact Report</strong></center></div></h1>




</cfdocumentitem>
<cfdocumentitem type="footer">
<div style="color: #000000 font-size:12px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; display: inline;"></div>
<cfset count = count + 1><cfoutput>#count#</cfoutput>
</cfdocumentitem>
<table id="" border="0" cellspacing="0" cellpadding="0" width="100%" <cfoutput>style="#table_sytle#"</cfoutput> >
<thead >
<tr>
<td <cfoutput>style="#th_style#"</cfoutput>>Location</td>
<td <cfoutput>style="#th_style#"</cfoutput>>Jurisdiction</td>
<td <cfoutput>style="#th_style#"</cfoutput>>Agency Type</td>
<td <cfoutput>style="#th_style#"</cfoutput>>Agency Name</td>
<td <cfoutput>style="#th_style#"</cfoutput>>Agency Physical Address</td>
<td <cfoutput>style="#th_style#"</cfoutput>>Contact Last Name</td>
<td <cfoutput>style="#th_style#"</cfoutput>>Contact First Name</td>
<td <cfoutput>style="#th_style#"</cfoutput>>Contact Title</td>
<td <cfoutput>style="#th_style#"</cfoutput>>Contact Email</td>
<td <cfoutput>style="#th_style#"</cfoutput>>Contact Phone </td>
</tr>
</thead>


<cfloop list="#url.list#" index="i">
<cfinvoke component="components.data" method="get_poc_detail" returnvariable="list_poc" id="#i#">
<cfloop query="list_poc">
<tbody>

<tr>
<td valign="top" <cfoutput>style="#td_style#"</cfoutput>><cfoutput>#state#</cfoutput></td>
<td valign="top" <cfoutput>style="#td_style#"</cfoutput>><cfoutput>#city#</cfoutput></td>
<td valign="top" <cfoutput>style="#td_style#"</cfoutput>><cfoutput>#gov_type#</cfoutput></td>
<td valign="top" <cfoutput>style="#td_style#"</cfoutput>><cfoutput>#company#</cfoutput></td>
<td valign="top" <cfoutput>style="#td_style#"</cfoutput>><cfoutput>#address#</cfoutput></td>
<td valign="top" <cfoutput>style="#td_style#"</cfoutput>><cfoutput>#last_name#</cfoutput></td>
<td valign="top" <cfoutput>style="#td_style#"</cfoutput>><cfoutput>#first_name#</cfoutput></td>
<td valign="top" <cfoutput>style="#td_style#"</cfoutput>><cfoutput>#title#</cfoutput></td>
<td valign="top" <cfoutput>style="#td_style#"</cfoutput>><cfoutput>#email#</cfoutput></td>
<td valign="top" <cfoutput>style="#td_style#"</cfoutput>><cfoutput>#phone#</cfoutput></td>
</tr>
</tbody>
</cfloop>
</cfloop>

</table>

</cfdocument>

<cflocation url="report.pdf" addtoken="no">

</cfif>


